#pragma once
#include"binary_node.h"

template<class Record>
struct AVL_node : public Binary_node<Record>
{
	Balance_factor balance;
	AVL_node();
	AVL_node(const Record& x);
	void set_balance(Balance_factor b);
	Balance_factor get_balance()const;
};

template<class Record>
void AVL_node<Record>::set_balance(Balance_factor b)
{
	balance = b;
}

template<class Record>
Balance_factor AVL_node<Record>::get_balance()const
{
	return balance;
}
